from optparse import OptionParser


def start():
    usage = "Usage: %prog -u root -p password"
    parser = OptionParser(usage)
    parser.add_option("-f", "--file", dest="filename",
                      help="write report to FILE", metavar="FILE")
    parser.add_option("-q", "--quiet",
                      action="store_false", dest="verbose", default=True,
                      help="don't print status messages to stdout")

    options, args = parser.parse_args()
    print('file name is :', options.filename)
    print('quiet name is :', options.verbose)


if __name__ == '__main__':
    try:
        start()
    except KeyboardInterrupt:
        print('error')
